package com.upcode.weighing.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 短信模板发送记录关联表
 * </p>
 *
 * @author chenyan
 * @since 2020-09-01
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Accessors(chain = true)
@TableName("msg_template_push_rec")
public class MsgTemplatePushRec implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    /**
     * 短信模板ID
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long msgTemplateId;

    /**
     * 发送记录ID
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long msgPushRecId;

    /**
     * 操作人ID
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long uid;

    /**
     * 接收短信号码
     */
    private String phone;

    /**
     * 短信模板
     */
    private String msgTemplate;

    /**
     * 短信参数
     */
    private String msgParam;

    /**
     * 发送状态 0成功 1失败
     */
    private Integer pushStatus;

    /**
     * 创建时间
     */
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;


}
